TARGET = xlogger
BACKEND_OBJS = backend.o
CON_STUB_OBJS = conmain.o
X11_STUB_OBJS = xmain.o
CFLAGS = -Wall -ggdb3

all : $(TARGET)

conlogger : $(BACKEND_OBJS)
	gcc -o $(TARGET) $(BACKEND_OBJS) $(CON_STUB_OBJS)

xlogger : $(BACKEND_OBJS) $(X11_STUB_OBJS)
	gcc -o $(TARGET) $(BACKEND_OBJS) $(X11_STUB_OBJS) -Wl,-L/usr/X11R6/lib/ -lX11 -lm

conmain.o : conmain.c types.h backend.h frontend.h

backend.o : backend.c types.h backend.h

xmain.o : xmain.c types.h frontend.h backend.h
